{extend name="main/index" /}
{block name="main"}


<!-- Start right content -->
        <div class="content-page">
			<!-- ============================================================== -->
			<!-- Start Content here -->
			<!-- ============================================================== -->
            <div class="content">
								<!-- Page Heading Start -->

				<div class="page-heading">
            		<h1><i class='fa fa-table'></i>{$title}</h1>
            		
            	<!-- Page Heading End-->				<!-- Your awesome content goes here -->
								
				<div class="row">
					
					<div class="col-md-12">
						<div class="widget">
							<div class="widget-header transparent">
								<h2><strong>{$content}</strong> Table Hover</h2>
								<div class="additional-btn">
									<a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
									<a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
									<a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
								</div>
							</div>
							<div class="widget-content">
								<div class="table-responsive">
									<table data-sortable class="table table-hover table-striped">
										<thead>
										
											<tr>
												<th>Num</th>
												<th>uid</th>
												<th>courseid</th>
												<th>提问时间</th>
												<th>提问标题</th>
												<th>提问内容</th>
												<th>是否解答</th>
												
												<th>操作</th>
											</tr>
										</thead>
										
										<tbody>
										{volist name="question" key="k" id="v"}
											<tr>
												<td>{$k}</td>
												<td>{$v['uid']}</td>
												<td>{$v['courseid']}</td>
												<td><strong>{:date("Y-m-d H:i:s",$v['qtime'])}</strong></td>
												<td>{$v['title']}</td>
												<td>{$v['qcontent']}</td>
												<td><span class="label label-success">{$v['status']==0?'否':'已回答'}</span></td>
												<td>
												{if condition="$v['status']==0"}
												<a data-toggle="tooltip" class="btn btn-success" href="/reply_que/{$v['id']}">去回复</a>
                        						{else/}
												<a data-toggle="tooltip" class="btn btn-success" href="/reply_see/{$v['id']}">查看回复</a>
                        						{/if}
                        						</td>
											</tr>
										{/volist}
										</tbody>
									</table>
								</div>
								<div class="data-table-toolbar">
		                            <ul class="pagination">
		                                {$question->render()}
		                            </ul>
                        		</div>
							</div>
						</div>
						
					</div>
					
					
				
				</div>

				

				            <!-- Footer Start -->
            <footer>
                Huban Creative &copy; 2014
                <div class="footer-links pull-right">
                	<a href="#">About</a><a href="#">Support</a><a href="#">Terms of Service</a><a href="#">Legal</a><a href="#">Help</a><a href="#">Contact Us</a>
                </div>
            </footer>
            <!-- Footer End -->			
            </div>
			<!-- ============================================================== -->
			<!-- End content here -->
			<!-- ============================================================== -->

        </div>
		<!-- End right content -->

{/block}